<template>
  <ul>
    <li v-for="node in list" :key="node.id">{{node.name}}</li>
  </ul>
</template>

<script setup>
import { ref } from 'vue'
export default {
  setup() {
    let List = [
      { name: '张三', id: 1 },
      { name: '李四', id: 2 },
      { name: '王五', id: 3 },
    ]
    const list = ref(List)

    return {
      list,
    }
  },
}
</script>
